#ifndef blcx_SoundManager_h
#define blcx_SoundManager_h


#include "SimpleAudioEngine.h"
#include <string>
using namespace std;


class CSoundManager{
  
public:
    CSoundManager();
    static  CSoundManager* sharedSoundManager(void);
    void playBackground(const char*);
    void stopBackground();
    
    void playEffect(const char*);
    void playBtnSound();
    
    void preloadBackground(const char*);
    void preloadEffect(const char*);
    
    
    void setEffectV(int num);
    void setBackGroundV(int num); 
    int getEffectV();
    int getBackGroundV();
    
    void loadConf();
    void saveConf();
    
    
    void setIsPlayEffect(bool);
    void setIsPlayBackground(bool);
    bool isPlayEffect(){
        return m_isPlayEffect;
    }
    bool isPlayBackground(){
        return m_isPlayBackGround;
    }
protected:
    
    bool m_isPlayEffect;
    bool m_isPlayBackGround;
    string backGroundPath;

    

};
#endif
 